package br.com.news.application.factory;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import br.com.news.application.factory.interfaces.IFactoryDistribution;

public class ApplicationMain {

	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext(
				"/ctx-news-application-factory.xml", "/ctx-news-application.xml",
				"/ctx-news-application-service-client.xml");

		IFactoryDistribution factoryDistribution = context.getBean(IFactoryDistribution.class);
		factoryDistribution.startApplication();
	}
}
